
<html>
  <head>
    <script type="text/javascript" src="tiny_mce.js"></script>
    <script type="text/javascript">


function init() {
    tinyMCE.init({
        mode: 'exact',
        elements: 'elm1',
        theme: 'advanced',
        plugins: 'inlinepopups'
    });
}

function testWindowManager() {

    var url = 'http://modunle';
    var wm = tinyMCE.activeEditor.windowManager;
    wm.open(
        {
            file : url + '/',
            width : 320,
            height : 120,
            inline : 1
        },
        {
            plugin_url : url, // Plugin absolute URL
            some_custom_arg : 'custom arg' // Custom argument
        }
    );
}

    </script>
  </head>
  <body onload="init()">

<div id="elm1" style="display: none"></div>
    <a href="javascript:testWindowManager()">Test Window Manager</a>
  </body>
</html>